package com.sfzy.service;

import com.github.pagehelper.PageInfo;
import com.sfzy.entity.Answer;

import java.util.List;

public interface AnswerService {
    //增
    int addAnswer(Answer answer);
    //删
    int deleteAnswer(int id);
    //改
    int updateAnswer(Answer answer);
    //根据id查
    Answer getAnswerById(int id);
    //分页查
    PageInfo<Answer> getAnswers(Answer answer,int pageNum,int pageSize);
}
